

package cn.rengy.auth;


import java.io.Serializable;
import java.security.Principal;
import java.util.Collection;

public interface Authentication extends Serializable {


    Principal getPrincipal();

    boolean isAuthenticated();

    void setAuthenticated(boolean isAuthenticated);
    Object getCredentials();

    Collection getAuthorities();

}
